.floating-offer {
    position: fixed;
    /* Screen ke bilkul beech mein laane ke liye logic */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    
    z-index: 9999;
    
    /* "Long" look ke liye width badha di hai */
    width: 90%;          /* Mobile par screen ka 90% lega */
    max-width: 400px;    /* Desktop par 500px se bada nahi hoga */
}

/* Close Button - Center ke hisaab se thoda bada aur clear */
.offer-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4d4d;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.offer-close-btn:hover {
    background: #000; /* Hover par black ho jayega */
    transform: scale(1.1);
}

/* Image Style - Long aur Clean */
.img-floating-style {
    width: 100%;
    height: auto;        /* Aspect ratio maintain rahega */
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid #fff;
}

/* Logic to hide */
#close-offer {
    display: none;
}

#close-offer:checked ~ .offer-close-btn,
#close-offer:checked ~ .img-floating-style {
    display: none;
}

/* Optional: Piche ka background halka dhundla (Dark) karne ke liye */
#close-offer:not(:checked) ~ .img-floating-style::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}